<%@ page language="java" import="java.util.*,dao.*,entity.*" contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'login.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<!-- <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%> /css/style.css ">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%> /css/iconic.css ">
	 -->
	<link href="css/style.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="css/iconic.css" media="screen" rel="stylesheet" type="text/css" /> 
	<link href="css/bookList.css" media="screen" rel="stylesheet" type="text/css" /> 


  </head>
  
  <body>

     <center>
     <Strong><h1>添加用户</h1></Strong>
     <form name="form1" action="${pageContext.request.contextPath}/servlet/RegisterServlet" method="post">
     
     <table>
        <tr>
          <td> 卡号：</td>
          <td> <input type="text" name="id" value="${formbean.id}" size=90>${formbean.errors.id}</td>
        </tr>
         <tr>
          <td> 姓名：</td>
          <td> <input type="text" name="name" value="${formbean.name}" size=90>${formbean.errors.name}</td>
        </tr>
        <tr>
          <td> 密码：</td>
          <td> <input type="password" name="password" value="${formbean.password}" size=90 >${formbean.errors.password}</td>
        </tr>
        <tr>
          <td> 确认密码：</td>
          <td><input type="password" name="againpassword" value="${formbean.againpassword}" size=90 >${formbean.errors.againpassword}</td>
        </tr>
        <tr>
          <td>  性别：</td>
          <td>  <input type="text" name="sex" value="${formbean.sex}" size=90>${formbean.errors.sex}</td>
        </tr>
        <tr>
          <td>  学院专业：</td>
          <td>   <input type="text" name="dept" value="${formbean.dept}" size=90>${formbean.errors.dept}</td>
        </tr>
        <tr>
          <td>  年级班级： </td>
          <td>  <input type="text" name="grade" value="${formbean.grade}" size=90>${formbean.errors.grade}</td>
        </tr>
        <tr>
          <td>   邮箱：</td>
          <td>  <input type="text" name="email" value="${formbean.email}" size=90>${formbean.errors.email}</td>
        </tr>
        <tr>
          <td>  方向：</td>
          <td>  <input type="text" name="direction" value="${formbean.direction}" size=90>${formbean.errors.direction}</td>
        </tr>
        <tr>
          <td>  角色：</td>
          <td> Reader
        </tr>
        <tr>
          <td colspan="2" align="center">
            <input type="submit" value="注册" >
            <input type="reset" value="清空">
        </tr>
     
     </table>
      </form>
   
      </center>  
   
  </body>
</html>
